
#include <librally.h>

int main()
{
	Err err;
	char s[4] = "test";
	FILE *fp;


	pid_t ppid = getpid();
	err = rp_daemonize(1, 1);

	fp = fopen("test", "w+");
	if (fp == NULL)
	{
		perror("fopen");
	}
	pid_t pid = getpid();
	char ss[128];
	memset(ss, 0, 128);

	sprintf(ss, "%d %d", ppid, pid);
	fputs(ss, fp);
	fclose(fp);

	return 0;
}

